package utils

import "time"

// 时间过去的毫秒数，成功后刷时间
func TimePassed(tm *time.Time, Milliseconds uint32) bool {
	nowTime := time.Now()
	isOk := nowTime.Sub(*tm).Milliseconds() >= int64(Milliseconds)
	if isOk {
		*tm = nowTime
	}
	return isOk
}
